package com.zbxx.practice.socket;

import java.io.*;
import java.net.Socket;

/**
 * @author 万仁杰
 * @date 2019/05/30
 */
public class Client {


    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1",8888);
        BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
        System.out.println("服务器："+reader.readLine());
        new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()))).write("client11");
    }

}
